<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="org.swim.entity.User" %>
<%@ page import="org.swim.entity.Ability" %>
<%@ page import="org.swim.entity.HelpRequests" %>
<%@ page import="java.util.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Leave a Feedback</title>
	<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
	<%@ include file="NavBar.jsp" %>
	<div class="container">
	<% if(!status.equals("guest")) {
	HelpRequests helpRequest = (HelpRequests) request.getAttribute("request"); %>
	<h1>Leave Feedback</h1>
	<p>You are leaving a feedback for the request you made to <% out.print(helpRequest.getDestinatario().getNome() + " " + helpRequest.getDestinatario().getCognome()); %>
	about his ability <% out.print(helpRequest.getAbilita().getNome()); %>. <br />Be careful! You won't be able to edit or 
	delete this feedback.</p>
		<form action="LeaveFeedback" method="post">
		<input type="hidden" name="request" value="<% out.print(helpRequest.getIdRichiesta()); %>">
			  <label>Insert your feedback there</label>
			  <textarea rows="4" name="feedback"></textarea>
			  <br />
			<button type="submit" class="btn">Submit</button>
		</form>
	<% } else { %>
		<%@ include file="NoRights.jsp" %>	
	<% } %>
	</div>
</body>
</html>